package com.jlect.swebing.ui.client;

/**
 * Mouse event interface
 * @author Sergey Kozmin
 * @since 10.11.2007 22:48:09
 */
public class MouseEvent extends BaseGEvent {
    public static final int CLICK_EVENT     = 1;
    public static final int MOUSE_DOWN      = 2;
    public static final int MOUSE_MOVE      = 3;
    public static final int MOUSE_OUT       = 4;
    public static final int MOUSE_OVER      = 5;
    public static final int MOUSE_UP        = 6;
    public static final int MOUSE_WHEEL     = 7;

    private int mouseType;

    public MouseEvent(Object event, GComponent source, int mouseType, int modifier) {
        super(event, MOUSE_EVENT, source, modifier);
        setMouseType(mouseType);
    }

    public void init(Object event, GComponent source, int mouseType, int modifier) {
        init(event, MOUSE_EVENT, source, modifier);
        setMouseType(mouseType);
    }

    public int getMouseType() {
        return mouseType;
    }

    public void setMouseType(int mouseType) {
        this.mouseType = mouseType;
    }
}
